<?php    
    $c = new Criteria();
    $categorias = CategoriaPeer::doSelect($c);
    if ($caracteristica->getCategoriaId()) {
        $categoria_selected = $caracteristica->getCategoriaId();
    } else if (count($categorias)>0){
        $categoria_selected = $categorias[0]->getId();
    } else {
        $categoria_selected = "";
    }

    echo select_tag('caracteristica[categoria_id]',objects_for_select($categorias,'getId','getNombre',$categoria_selected,'include_custom=Seleccione'));
                                                            
?>
